<template>
  <!-- 三级联动导航 -->
  <TypeNav />
  <ListBox />
  <Recommend />
  <Rank />
  <Like />
  <Floor v-for="floor in floorList" :key="floor.id" :floorItem="floor" />
  <Brand />
</template>

<script setup>
import { computed, onMounted } from "vue";
import { useStore } from "vuex";
import Brand from "./Brand/Brand.vue";
import Floor from "./Floor/Floor.vue";
import Like from "./Like/Like.vue";
import ListBox from "./ListBox/ListBox.vue";
import Rank from "./Rank/Rank.vue";
import Recommend from "./Recommend/Recommend.vue";
const $store = useStore();
const $state = $store.state;

const floorList = computed(() => $state.Home.floorList);
onMounted(() => $store.dispatch("getFloorList"));
</script>

<style scoped lang="less"></style>
